export default {
    namespaced: true,
    state: {
        addLoading: false // 添加好友的loading
    },
    getters: {
        addLoading: state => state.addLoading
    },
    mutations: {
        /**
         * @description 设置下拉菜单数据
         * @param {Object} state vuex state
         * @param {Array} menu menu
         */
        SET_ADDLOADING: (state, addLoading) => {
            state.addLoading = addLoading
        }
    },
    actions: {
        // 设置错误信息
        SetAddLoading ({ commit }, addLoading) {
            commit('SET_ADDLOADING', addLoading)
        }
    }
}
